home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: uucp-1.csn.net!slimer!jennings
- From: jennings@igs.com (Jeff Jennings)
- Subject: Re: Argument from commandline???
- Message-ID: <1996Feb2.195836.12004@igs.com>
- Organization: Igs, Inc.
- X-Newsreader: TIN [version 1.2 PL2]
- References: <4eou36$p6g@prometheus.algonet.se> <4erec9$f88@clarknet.clark.net>
- Date: Fri, 2 Feb 96 19:58:36 GMT
-
- Harlan Messinger (gusty@clark.net) wrote:
- : Nylund Patrik (bifrost@algonet.se) wrote:
- : : How do I include argument from the commandline to the main function in
- : : a c++ program?
- : :
-
-
- : The proper full definition of the function "main" is
-
- : int main(int argc, char *argv[]) {
- : ...
- : }
-
- actually, it's:
-
- int main(int argc, char *argv[], char *envp[]) {
- ...
- }
-
- --
- Jeff Jennings __o | You can't solve a problem using the
- jennings@igs.com _ \<,_ | same thinking that got you there.
- (303)449-1110 x2203 (_)/ (_) | - Albert Einstein
- GCS -d+ -p+ c++ l++ u+(++) e++ m+ s/+ n+(---) h---(*) f+(-) !g w+ t++ r- y+(*)
-